package com.example.dqhperformance.controller;

import com.example.dqhperformance.dto.R;
import com.example.dqhperformance.service.CreateHorizontalScorerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(value = "宜搭", tags = {"新金桥绩效接口"})
@RestController
@RequestMapping("/api")
@Slf4j
public class PerformanceContorller {

    @Autowired
    private CreateHorizontalScorerService createHorizontalScorerService;

    @PostMapping("/horizontalScorer/create")
    @ApiOperation("设置打分人")
    public R createHorizontalScorer(@RequestParam String id) {
        createHorizontalScorerService.createHorizontalScorer(id);
        return R.ok("项目成员横向打分人更新完成");
    }

}
